package org.zenheart.fxnative.view.controller;

import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Button;
import javafx.scene.control.TextField;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.net.URL;
import java.util.ResourceBundle;

/**
 * <p>项目名称: cgenerator </p>
 * <p>描述: 配置页面 </p>
 * <p>创建时间: 2021/9/23 </p>
 *
 * @author CKM
 * @version v1.0
 */
@Slf4j
@Component
public class SettingController implements Initializable {

    @FXML
    public TextField superClass;
    @FXML
    private TextField directoryLocation;
    @FXML
    private Button directoryChooser;
    @FXML
    private TextField databaseUrl;
    @FXML
    private TextField databaseName;
    @FXML
    private TextField username;
    @FXML
    private TextField password;
    @FXML
    private TextField schema;
    @FXML
    private TextField moduleName;
    @FXML
    private TextField packagePath;
    @FXML
    public TextField tablePrefix;

    @Override
    public void initialize(URL location, ResourceBundle resources) {
        log.info("------------------");
    }


    public void saveConfigEvent(ActionEvent actionEvent) {

    }
}
